{% extends "default.html" %}
{% block title %}
oalabs
{% endblock %}

{% block pagecss %}
.navi{width:100%;height:28px;background:url("{{ imgsurl }}/icos/inavbg28.gif") repeat-x;}
.tool{width:100%;height:25px;line-height:25px;background:url("{{ imgsurl }}/icos/inavbg25.png") repeat-x;}
.cont{margin:0 auto;width:100%;border:0;}
.detl{width:100%;padding:2px 0;margin:2px 0;border:0;}
.itab{width:990px;margin:0 auto;}
.ipl{width:953px;margin:10px auto 0;}
.ipl .iplt{font-weight:bold;font-size:10pt;}
.pwx{color:#fff;background:#449496;}
{% endblock %}

{% block navi %}
<div class="itab">
     <dl class="ibar">
        <dd class="item act"><div class="a"><div class="cap"><img class="ico" src="{{ imgsurl }}/icos/bricks.png" alt="" /><div class="txt">产品列表</div></div></a></dd>
        <dd class="item rtl">{{ userinfo|safe }}</dd>
    </dl>
</div>
{% endblock %}

{% block content %}
    {% for pcls in prodlist %}
    <fieldset class="ipl">
        <legend class="iplt" style="{{ pcls.csstyle }}" align="center">{{ pcls.name }}</legend>
        {% if pcls.subpcl %}{% for pcl1 in pcls.subpcl %}<div class="iplg" style="{{ pcl1.csstyle }}"><div class="iplgt">{{ pcl1.name }}</div>
        {% if pcl1.prods %}{% for prod1 in pcl1.prods %}<div class="ipld">{{ prod1.name }}</div>{% endfor %}{% else %}<div class="ipld">没有产品</div>{% endif %}{% if pcl1.subpcl %}{% for pcl2 in pcl1.subpcl %}{% for prod2 in pcl2.prods %}<div class="ipld">{{ prod2.name }}</div>{% endfor %}{% endfor %}{% endif %}</div>{% endfor %}{% endif %}
    </fieldset>
    {% endfor %}
{% endblock %}
